package com.nineclock.system;

import com.nineclock.common.entity.Result;
import com.nineclock.system.dto.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Api(value = "企业基本信息配置",tags = "系统服务")
public interface SysCompanyControllerApi {
    @ApiOperation(value = "查询企业基本信息")
    public Result<SysCompanyDTO> queryCompanyInfo();
    @ApiOperation(value = "上传图片")
    public Result<String> uploadCompanyLogo(MultipartFile file) throws IOException;
    @ApiOperation(value = "更新当前企业基本信息")
    public Result updateCompanyInfo(SysCompanyDTO sysCompanyDTO);
    @ApiOperation(value = "获取企业当前主管理员")
    public Result<SysCompanyUserDTO> getCurrentAdmin();
    @ApiOperation(value="更改系统管理员")
    public Result changeSysAdmin(SysChangeMainManagerDTO sysChangeMainManagerDTO);

    @ApiOperation(value = "根据企业的关键字名称查询企业列表")
    public Result<List<SysCompanyDTO>> queryCompanyByName(String keyword);

    @ApiOperation(value = "申请加入企业")
    public Result applyJoinCompany(SysApplyJoinCompanyUserDTO sysApplyJoinCompanyUserDTO);
    @ApiOperation(value = "审核加入企业")
    public Result allowedJoinCompany(SysAllowedJoinCompanyUserDTO sysAllowedJoinCompanyUserDTO);
}
